def common_assert(resp,except1):
    assert resp.status_code==except1['status_code']
    assert resp.json().get('success')==except1['success']
    assert resp.json().get('code') == except1['code']
    assert resp.json().get('message') ==except1['message']
    if except1.get("data"):
        assert resp.json()['data']['departmentId']==except1['data']['departmentId']